﻿using Domain.Types;
using Infrastructure.AggregateBase;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace Domain.Model
{
    [Table("RewardList")]
    public class RewardListAggregate : AggregateRoot<RewardListAggregate, int>
    {
        [Key]
        [DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)]
        public override int ID { get; set; }
        public int UserID { get; set; }
        /// <summary>
        /// 用户名
        /// </summary>
        public string UserName { get; set; }
        /// <summary>
        /// 用户头像
        /// </summary>
        public string UserPic { get; set; }
        /// <summary>
        /// 任务完成数
        /// </summary>
        public int TaskCount { get; set; }
        /// <summary>
        /// 奖励金额
        /// </summary>
        public int Money { get; set; }
        /// <summary>
        /// 几等
        /// </summary>
        public int Level { get; set; }
        /// <summary>
        /// 时间
        /// </summary>
        public DateTime Month { get; set; }

        public RewardListType RewardListType { get; set; }
    }
}
